package com.liuzhongni.wahahanews.singleton;

import android.app.Application;
import android.content.Context;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by dllo on 16/1/13.
 */
public class BaseSingleton extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        //极光推送 debug模式打开  在日志中能看到相应的输出
        JPushInterface.setDebugMode(true);
        //初始化
        JPushInterface.init(this);
        context = getApplicationContext();
    }

    public static Context getContext(){
        return context;
    }
}
